package com.wjh.www.entity.bo;

import com.wjh.www.entity.po.User;

import java.util.List;

/**
 * @author wjh
 * @date 2021/9/11 22:34
 * @Package com.wjh.anyview.entity.bo
 */
public class TokenBo {
    /**
     * 用户id
     */
    private Long id;
    /**
     * 用户具有的角色
     */
    private List<String> roleList;
    /**
     * 用户具有的权限
     */
    private List<String> permissionList;
    /**
     * token过期时间
     */
    private Long expireAt;
    /**
     * 用户
     */
    private User user;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public List<String> getRoleList() {
        return roleList;
    }

    public void setRoleList(List<String> roleList) {
        this.roleList = roleList;
    }

    public List<String> getPermissionList() {
        return permissionList;
    }

    public void setPermissionList(List<String> permissionList) {
        this.permissionList = permissionList;
    }

    public Long getExpireAt() {
        return expireAt;
    }

    public void setExpireAt(Long expireAt) {
        this.expireAt = expireAt;
    }

    public User getUser() {
        return user;
    }

    public void setUser(User user) {
        this.user = user;
    }

    @Override
    public String toString() {
        return "TokenBo{" +
                "id=" + id +
                ", roleList=" + roleList +
                ", permissionList=" + permissionList +
                ", expireAt=" + expireAt +
                ", user=" + user +
                '}';
    }
}
